package com.zf.shuashua.bean;

import android.text.TextUtils;

import java.io.Serializable;

public class ConfigAdvertHot implements Serializable {

    //热启动：1：开启 0：关闭
    private int status;
    //热启动的开屏广告间隔时间, 单位(秒)
    private String time;

    public boolean isOpen(){
        if(status == 1){
            return true;
        }
        return false;
    }

    public int getDisTime(){
        if(TextUtils.isEmpty(time)){
            return 15;
        }
        return Integer.parseInt(time);
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }
}
